import Vue from "vue";
import App from "./App.vue";
import router from "@/utils/routerGuard";
import store from "./store";
import ElementUI from "element-ui";
import eventBus from "@/utils/eventBus";
import "element-ui/lib/theme-chalk/index.css";
// 引入字体图标
import "@/assets/font/iconfont.js";
import "@/assets/font/iconfont.css";
import "@/assets/style/iconfont.css";
// 引入共同样式
import "@/assets/style/common.less";
import qfSubMenu from "qf-sub-menu"; //引入我们的组件
Vue.use(ElementUI);
Vue.prototype.$bus = eventBus;
//使用Vue.use()将组件注入到所有的子组件
Vue.use(qfSubMenu);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
